#ifndef LOGR_LOGS_H
#define LOGR_LOGS_H

#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/time.h>
#include <assert.h>
#include <gr_graph_fun.h>

#include <wwwconf.h>
#include <WWWLib.h>
#include <WWWFile.h>
#include <WWWUtil.h>

#include "LOGR_webstat.h"

/* Added by Andrew Morrison 11.02.03 */
typedef struct {
	char *cursite;
	char *curdate;
	int   httpCode;
	int   bytes;
	char *referer;
	char *browser;
	char *curl;
	int   method;
	int   http_version;
} log_line;

int
LOGR_read_all_files_templates(GraphFrame *gf, char *sfilename,WebStatPtr wsn);


int
LOGR_read_tokens(GraphFrame *gf, char *filename, WebStatPtr wsn);

extern void
LOGR_add_keywords(WebStatPtr wsf, char *url, HTAssocList *al);

void
LOGR_start_application(void);

void
LOGR_end_application(void);

#endif


